trigger ContractTrigger on Contract__c(before insert,before update,after update) 
{
	new Triggers()
	.bind(Triggers.Evt.beforeinsert, new ContractHandler())
    .bind(Triggers.Evt.beforeupdate, new ContractHandler())
    .bind(Triggers.Evt.afterupdate, new ContractHandler())
    .manage();
    ///合同创建的时候 带入客户的信用期 信用额
    if(Trigger.isBefore && Trigger.isUpdate)ContractHandler.setCredt(Trigger.new);
    if(Trigger.isBefore && Trigger.isInsert)ContractHandler.setCredt(Trigger.new);

}